<?php


namespace App\Models\Marketing;


use App\Models\BaseModel;
use App\Models\Shop\ShopModel;
use App\Models\Traits\KfUid;
use Illuminate\Database\Eloquent\Relations\HasOne;

class ShopAdvertisementMappingModel extends BaseModel
{
    use KfUid;

    protected $table = 'marketing_shop_advertisement_mapping';


    public function shopRel():HasOne
    {
        return $this->hasOne(ShopModel::class,'id','shopId');
    }

    public function advRel():HasOne
    {
        return $this->hasOne(ShopAdvertisementModel::class,'id','advId');
    }
}